package com.home.zus;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;

public class LoginBean {
   private String login;
   private String password;


   /**
    * @return the password
    */
   public String getPassword() {
      return password;
   }

   /**
    * @param password the password to set
    */
   public void setPassword(String password) {
      this.password = password;
   }

   /**
    * @return the login
    */
   public String getLogin() {
      return login;
   }

   /**
    * @param login the login to set
    */
   public void setLogin(String login) {
      this.login = login;
   }
   
   public String logining()
   {
      if (login.equals("mike"))
         return "success";
      else 
         return "failure";
   }
}
